package com.wcity.manage.service.community.remark.impl;

import com.wcity.manage.dao.mapper.community.remark.CommunityRemarkMapper;
import com.wcity.manage.dao.model.community.remark.CommunityRemark;
import com.wcity.manage.service.community.remark.CommunityRemarkService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

/**
 * 备注
 * Created by hgg on 2016/12/19.
 */
@Service
public class CommunityRemarkServiceImpl implements CommunityRemarkService {

    @Autowired
    private CommunityRemarkMapper communityRemarkMapper;

    /**
     * 新增备注
     * @param communityRemark
     * @return
     */
    @Override
    public Integer saveAddRemark( CommunityRemark communityRemark) {

        return communityRemarkMapper.saveAddRemark(communityRemark);
    }

    /**
     * 删除备注
     * @param deleteMap
     * @return
     */
    @Override
    public Integer deleteRemark( Map<String, Object> deleteMap ) {

        return communityRemarkMapper.deleteRemark( deleteMap );
    }

    /**
     * 备注列表
     * @param queryMap
     * @return
     */
    @Override
    public List<CommunityRemark> remarkList( Map<String, Object> queryMap ) {

        return communityRemarkMapper.remarkList( queryMap );
    }
}
